package distributed_block

import "time"

// WithExpiry can be used to set the expiry of a mutex to the given value.
func WithExpiry(expiry time.Duration) OptionFunc {
	return OptionFunc(func(m *DistributedBlock) {
		m.expiry = expiry
	})
}
